import android
import string
import time
def gps():
    droid = android.Android()
    droid.startLocating()
    location = droid.readLocation().result
    droid.stopLocating()
    lat = location['gps']['latitude']
    lon = location['gps']['longitude']
    pos=(location['gps']['latitude'],location['gps']['longitude'])
    return pos
